

























































































































/usr/bin/inkbox.sh that restarts inkbox-bin if the exit code is not 0


















/etc/init.d/splash.d/init_show.
I lost the source code, but it was one of my first programs for Kobos and InkBox was originally going to be written in C with only FBInk as the library. I realized that it was almost impossible to do, so I decided to go the Qt way. The files in this directory are the remnants of what InkBox would have been with FBInk.
You can try /etc/init.d/splash.d/init to get a glimpse of how it would have looked.





Copyright (C) 2021-2022 Nicolas Mailloux <nicolecrivain@gmail.co> you have eaten the com`


Copyright (C) 2021-2022 Nicolas Mailloux <nicolecrivain@gmail.co> you have eaten the com` 

























mkfs.vfat /data/storage/onboard (edited)



























192.168.2.2 by default if it reboots from an error splash. The IP can be changed as usual with the USBNET_IP flag.
DFL flag, which will export the entire MMC over USB on boot without the need of pressing a key combination.








DFL flag, which will export the entire MMC over USB on boot without the need of pressing a key combination. 



g_mass_storage

















commit 752ca0df22b8bc379d64873d9491ea69d4df2761 (HEAD -> master, origin/master, origin/HEAD)
Author: Oliwer <53944559+Szybet@users.noreply.github.com>
Date: Mon Mar 28 23:16:41 2022 +0200
sshfs support
commit a6582731a1c23e776fd385616e7ac74fb8d70c9a
Author: Oliwer <53944559+Szybet@users.noreply.github.com>
Date: Mon Mar 28 23:11:04 2022 +0200
small kernel fix
commit de78cd8474a9ae14b1a285d0d7396496c68f0c37
Author: Oliwer <53944559+Szybet@users.noreply.github.com>
Date: Mon Mar 28 23:06:49 2022 +0200
touchscreen fix
commit 0f1ebe0a60e3458d3eb187c8144960d3e08b3c40 (upstream/master)
Author: Nicolas Mailloux <nicolecrivain@gmail.com>
Date: Tue Mar 29 22:05:28 2022 -0400
Implement boot-time USB debug mode




commit 224c0f07157f9089da0b4693d29a4d2e94d6a01c
Author: Nicolas Mailloux <nicolecrivain@gmail.com>
Date: Sun Mar 27 16:33:49 2022 -0400
inkbox-splash: Display QR code when a boot-time issue happens
commit 4ca43ae1f17846f16722db835ffe370638eb9d5a
Author: Nicolas Mailloux <nicolecrivain@gmail.com>
Date: Sun Mar 27 14:41:39 2022 -0400
Add qr-to-png they are here






kobo:~# ls /etc/init.d/inkbox-splash
ls: /etc/init.d/inkbox-splash: No such file or directory (edited)





kobo:~# ls /etc/init.d/inkbox-splash
ls: /etc/init.d/inkbox-splash: No such file or directory (edited)


kobo:~# ls /boot/flags/
USBNET_ENABLE USBNET_IP X11_START X11_STARTED









Linux kobo 4.1.15szybettest #1 SMP PREEMPT Wed Mar 30 19:38:46 CEST 2022 armv7l GNU/Linux









ImageMagick-7/ fish/ issue network/ rc.conf terminfo/
acpi/ fonts/ lbu/ ntp.conf resolv.conf udev/
alpine-release fstab libnl/ opt/ rsyncd.conf udhcpd.conf
apk/ fuse.conf local.d/ os-release runlevels/ usb_modeswitch.conf
ca-certificates.conf group localtime pango/ securetty usb_modeswitch.d/
ca-certificates/ group- logrotate.d/ passwd securetty.apk-new usb_modeswitch.setup
chrony/ hostname mdev.conf passwd- services vim/
conf.d/ hosts mke2fs.conf periodic/ shadow wgetrc
crontabs/ images/ modprobe.d/ pkcs11/ shadow- wpa_supplicant/
dbus-1/ init.d/ modules ppp/ shells
dhclient-script inittab modules-load.d/ profile ssh/
dhcp/ inputrc motd profile.d/ ssl/
dhcpcd.conf iproute2/ mtab protocols sysctl.conf
e2scrub.conf iptables/ nanorc radiusclient/ sysctl.d/
why are here so many files?...













~ # cat /tmp/sshd_config
PermitRootLogin yes\nSubsystem sftp internal-sftp\n# If sshfs doesn't work, first enable read-write support, then begin a connection with sshfs



echo "PermitRootLogin yes\nSubsystem sftp internal-sftp\n# If sshfs doesn't work, first enable read-write support, then begin a connection with sshfs" >> /tmp/sshd_config









internal-sftp\n# If sshfs

























ERROR: font-noto-extra-0_git20170920-r0: No space left on device











/kobo/mnt/onboard/.adds/qt-linux-5.15.2-kobo/lib/fonts






/kobo/mnt/onboard/.adds/qt-linux-5.15.2-kobo/lib/fonts unsquashfs -d gui-bundle update.isa
unsquashfs -d gui-bundle/qt gui-bundle/qt.isa
cp <fonts> gui-bundle/qt/lib/fonts
pushd gui-bundle/qt && rm ../qt.isa* && mksquashfs . ../qt.isa -b 1048576 -comp xz -Xdict-size 100% -always-use-fragments && popd
openssl dgst -sha256 -sign private.pem -out gui-bundle/qt.isa.dgst gui-bundle/qt.isa
pushd gui-bundle/ && rm -rf qt/ && rm ../update.isa && mksquashfs . ../update.isa -b 1048576 -comp xz -Xdict-size 100% -always-use-fragmentslib/fonts to give you more luck































































































DEBUG=1 env var is set. Will make it easier to debug in the future...












































































06/04/2022 @ 22:44:02 | main: Running on device n705
06/04/2022 @ 22:44:03 | MainWindow: Checking for available updates ...
06/04/2022 @ 22:44:03 | MainWindow: checkForUpdate: No update available.
06/04/2022 @ 22:44:04 | MainWindow: Showing USB Mass Storage dialog ...
06/04/2022 @ 22:44:20 | MainWindow: Opening Settings Chooser widget ...
06/04/2022 @ 22:44:23 | settingsChooser: Launching KoBox Settings ...
06/04/2022 @ 22:44:26 | settingsChooser: Launching InkBox Settings ...
06/04/2022 @ 22:44:27 | functions: defineDefaultPageSize: Defined default ePUB page height to 365
06/04/2022 @ 22:44:27 | functions: defineDefaultPageSize: Defined default ePUB page width to 365
06/04/2022 @ 22:44:27 | functions: defineDefaultPageSizeDefined default PDF page height to 750
06/04/2022 @ 22:44:27 | functions: defineDefaultPageSizeDefined default PDF page width to 550
06/04/2022 @ 22:44:30 | main: Running on device n705
06/04/2022 @ 22:44:31 | MainWindow: Checking for available updates ...
06/04/2022 @ 22:44:31 | MainWindow: checkForUpdate: No update available.
06/04/2022 @ 22:44:32 | MainWindow: Showing USB Mass Storage dialog ...
06/04/2022 @ 22:44:41 | MainWindow: Launching Reader Framework ...
06/04/2022 @ 22:44:41 | reader: Opening file '/mnt/onboard/onboard/67550.epub'
06/04/2022 @ 22:44:41 | functions: defineDefaultPageSize: Defined default ePUB page height to 365
06/04/2022 @ 22:44:41 | functions: defineDefaultPageSize: Defined default ePUB page width to 365
06/04/2022 @ 22:44:42 | functions: Finding ePUB metadata ...
06/04/2022 @ 22:44:42 | functions: findEpubMetadata: ePUB metadata is: Bertrand W. Sinclair
06/04/2022 @ 22:44:42 | functions: Finding ePUB metadata ...
06/04/2022 @ 22:44:42 | functions: findEpubMetadata: ePUB metadata is: Troubled Waters (edited)















































































































soo can i redesign it for the kobo nia as a setting option that it will:
- its sleeping
- value 0 detected
- value 1 ( its on the back )
- value 0 detected
- value 1 detected, the sleep cover is back on the top go to sleep now
this software mod is the only thing i can think of that would work
Kobo Touch N905C, @NonaSuomy doesn't have the wifi button

















































Kobo Touch N905C, @NonaSuomy doesn't have the wifi button 

















































































































Calculating dependencies might be actually longer than updating your system



























echo 1 > /proc/sys/vm/drop_caches)




































/var/log/inkbox-gui.log if GUI_DEBUG flag is set to true), added support for landscape PDFs, fixed the timezone thing, it doesn't require any reboot anymore and implemented some fancy cinematic brightness if a different setting is set for a book.
So I think I can release 1.9 now. Finally.
Am I wrong? ^^
(@Szybet : advice requested) (edited)























mount /path/to/inkbox-update-1.8.upd.isa /mnt
dd if=/mnt/uImage-root-n905c of=/dev/mmcblk0 bs=512 seek=81920
echo rooted | dd of=/dev/mmcblk0 bs=512 seek=79872
umount /mnt (edited)mount /dev/mmcblk0p1 /mnt
echo true > /mnt/flags/USBNET_ENABLE
umount /mnt (edited)sync
eject /dev/mmcblk0



sudo mount inkbox-update-1.8.upd.isa /mnt
ls /mnt
rootfs.squashfs uImage-root-n905c uImage-std-n905c update.isa
rootfs.squashfs.dgst uImage-root-n905c.dgst uImage-std-n905c.dgst update.isa.dgst
cd /mnt
sudo dd if=/mnt/uImage-root-n905c of=/dev/mmcblk0 bs=512 seek=81920
11660+1 records in
11660+1 records out
5970332 bytes (6.0 MB, 5.7 MiB) copied, 0.0329221 s, 181 MB/s
sudo dd of=/dev/mmcblk0 bs=512 seek=79872
sudo mount /dev/mmcblk0p1 /mnt
mount: /mnt: special device /dev/mmcblk0p1 does not exist.
sudo fdisk -l?

sudo dd if=/dev/mmcblk0 bs=512 skip=79872 count=1? (edited)
rooted
0+1 records in
0+1 records out
7 bytes copied, 2.7383e-05 s, 256 kB/s
sudo rm /dev/mmcblk0
and plug/unplug your SD

sudo mount inkbox-update-1.8.upd.isa /mnt
ls /mnt
rootfs.squashfs uImage-root-n905c uImage-std-n905c update.isa
rootfs.squashfs.dgst uImage-root-n905c.dgst uImage-std-n905c.dgst update.isa.dgst
cd /mnt
sudo dd if=/mnt/uImage-root-n905c of=/dev/mmcblk0 bs=512 seek=81920
11660+1 records in
11660+1 records out
5970332 bytes (6.0 MB, 5.7 MiB) copied, 0.0329221 s, 181 MB/s
sudo dd of=/dev/mmcblk0 bs=512 seek=79872
sudo mount /dev/mmcblk0p1 /mnt
mount: /mnt: special device /dev/mmcblk0p1 does not exist. 


sudo rm /dev/mmcblk0
and plug/unplug your SD 
Disk /dev/sdb: 3.69 GiB, 3965190144 bytes, 7744512 sectors
Disk model: SD/MMC
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x9566d046
Device Boot Start End Sectors Size Id Type
/dev/sdb1 40959 79871 38913 19M 83 Linux
/dev/sdb2 104448 1128447 1024000 500M 83 Linux
/dev/sdb3 1128448 1390591 262144 128M 83 Linux
/dev/sdb4 1390592 7549747 6159156 2.9G 83 Linux


mount /path/to/inkbox-update-1.8.upd.isa /mnt
dd if=/mnt/uImage-root-n905c of=/dev/mmcblk0 bs=512 seek=81920
echo rooted | dd of=/dev/mmcblk0 bs=512 seek=79872
umount /mnt (edited)






ifconfig usb0 192.168.2.1











6: enp0s20f0u1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 92:3a:64:50:4a:12 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.1/32 scope global enp0s20f0u1
valid_lft forever preferred_lft forever



6: enp0s20f0u1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 92:3a:64:50:4a:12 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.1/32 scope global enp0s20f0u1
valid_lft forever preferred_lft forever 

/var/log/inkbox-gui.log if GUI_DEBUG flag is set to true), added support for landscape PDFs, fixed the timezone thing, it doesn't require any reboot anymore and implemented some fancy cinematic brightness if a different setting is set for a book.
So I think I can release 1.9 now. Finally.
Am I wrong? ^^
(@Szybet : advice requested) (edited)
















8: enp0s20f0u1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether f2:d8:5f:15:d8:72 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.1/24 scope global enp0s20f0u1
valid_lft forever preferred_lft forever
DOWN




sudo ifconfig -s enp0s20f0u5 192.168.2.10/24











sudo ifconfig -s enp0s20f0u5 192.168.2.10/24 









ip too, but if it doesn't work, there a re problems i use ifconfig













































ssh user@192.168.2.2
user@192.168.2.2's password:
Welcome to InkBox!
* Warning *
Root filesystem is mounted read-only.
Invoke `ifsctl mnt rootfs rw' to make it read-write.
kobo:~$ su root
Password:
kobo:/# 























kobo:/# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 82:99:3d:50:42:a0 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.2/24 brd 192.168.2.255 scope global usb0
inet 10.20.30.118/24 brd 10.20.30.255 scope global usb0












/xorg/root/Downloads probably?/xorg/root







/data/config/08-recent_books

/opt/config if it doesn't exist

/kobo chroot while in the GUI

scp /root/download.epub user@localhost:/tmp
ssh user@localhost
su
mv /tmp/download.epub /data/onboard
sync
exit
exitscp /root/download.epub root@localhost:/data/onboard
sync
exit








scp /root/download.epub root@localhost:/data/onboard
sync
exit 




















































1. Power on the sensor.
2. Wait for sensor to assert Data Ready pin (DR).
3. Initiate 2 byte I2C read operation. Payload of this read should be EE XX where XX is the amount of bytes toread in a second I2C read operation.
4. Read XX amount of bytes (number of bytes to read is indicated by second byte of first I2C Read Operation).Now read a message called BootComplete. The message should be
F0 11 40 02 00 00 63 0B 80 01 YY 81 02 03 YY 82 02 00 YY
where YY is usually "00" but can have another value. This signals the sensor is now booted.
5. To enable the sensor to start sending touch notifications, do the following:
a. Sending an Enable command:
EE 09 40 02 02 00 65 03 81 01 00
b. Read the response. The response should be:
EF 09 40 02 02 00 65 03 81 01 00
The initialization is now complete. When DR is asserted the sensor will send a touch notification or a newBootComplete. A BootComplete indicates that the sensor has restarted for some reason; Enable must then be setagain
The I2C Transport Protocol is very simple and identical in both directions (Read and Write). • Byte 1: FrameStart (A synchronization byte). • Byte 2: DataSize (Contains the size of the data that will be transmitted. Please note that the DataSize >= 1.The reason being that :even if the Command Data size is zero, one byte will be transmitted containing theCommandID). • Bytes 3 - : Payload encoded in ASN.1.









elan-touch

























echo true > /boot/flags/DISPLAY_DEBUG and reboot (edited)






































































































[FBInk] [fbink_refresh] Failed to refresh the screen!

[FBInk] [fbink_refresh] Failed to refresh the screen! 







[FBInk] [fbink_refresh] Failed to refresh the screen! 





















cp /mnt/onboard/.adds/plato/Settings-sample.toml /mnt/onboard/.adds/plato/Settings.toml
env LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/mnt/onboard/.adds/plato/libs:/mnt/onboard/.adds/qt-linux-5.15.2-kobo/lib" /mnt/onboard/.adds/plato/plato
touch input is messed up too



cp /mnt/onboard/.adds/plato/Settings-sample.toml /mnt/onboard/.adds/plato/Settings.toml
env LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/mnt/onboard/.adds/plato/libs:/mnt/onboard/.adds/qt-linux-5.15.2-kobo/lib" /mnt/onboard/.adds/plato/plato
touch input is messed up too 










MXCFB_SEND_UPDATE_V2 log right before, that's the actually useful bit of logging (and it's not even verbose only) (edited)
MXC_SEND_UPDATE_V2)









syncthing-linux-arm-v1.19.2 , I opened the page on another machine, synced my books, everything worksit doesnt synced but it actually does



/kobo/mnt/onboard/onboard, but it only has 500Mb, how do i increase it?
dd if=/dev/zero of=/data/storage/onboard bs=1M count=number-of-M-you-want

syncthing-linux-arm-v1.19.2 , I opened the page on another machine, synced my books, everything works 














dd if=/dev/zero of=/data/storage/onboard bs=1M count=number-of-M-you-want kobo:/kobo/mnt/onboard/onboard# du -h /data/storage/onboard
9.8G /data/storage/onboard

kobo:/kobo/mnt/onboard/onboard# df -h /kobo/mnt/onboard/onboard/
Filesystem Size Used Avail Use% Mounted on
fuse-overlayfs 115M 68M 39M 64% /kobo/mnt/onboard/onboard




cp /mnt/onboard/.adds/plato/Settings-sample.toml /mnt/onboard/.adds/plato/Settings.toml
env LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/mnt/onboard/.adds/plato/libs:/mnt/onboard/.adds/qt-linux-5.15.2-kobo/lib" /mnt/onboard/.adds/plato/plato
touch input is messed up too 

















































































cp /mnt/onboard/.adds/plato/Settings-sample.toml /mnt/onboard/.adds/plato/Settings.toml
env LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/mnt/onboard/.adds/plato/libs:/mnt/onboard/.adds/qt-linux-5.15.2-kobo/lib" /mnt/onboard/.adds/plato/plato
touch input is messed up too 



Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/library.rs:62:42
stack backtrace:
0: 0x54f16e70 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hbc32816bedd649a5
1: 0x54f4349c - <unknown>
2: 0x54f10998 - <unknown>
3: 0x54f1981c - <unknown>
4: 0x54f193f0 - <unknown>
5: 0x54f19ffc - <unknown>
6: 0x54f19c2c - <unknown>
7: 0x54f173f0 - <unknown>
8: 0x54f199c0 - <unknown>
9: 0x54b8e3a8 - <unknown>
10: 0x54b8e47c - <unknown>
11: 0x54c416fc - <unknown>
12: 0x54dd34d0 - <unknown>
13: 0x54d7933c - <unknown>
14: 0x54d4c7f8 - <unknown>
15: 0x54f16508 - <unknown>
16: 0x54d37024 - main
17: 0x75cf8d3c - __libc_start_main




Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, messag...mkdir /mnt/sd to solve thisCan't update [0, 0, 758, 1024]: can't send framebuffer update: EPERM: Operation not permitted.
the same error (edited)







































































































































































































kobo:~# uname -a
Linux kobo 3.0.35-inkbox #1 PREEMPT Thu May 12 00:57:03 EDT 2022 armv7l GNU/Linux
kobo:~# node
Welcome to Node.js v18.1.0.
Type ".help" for more information.
> .help
.break Sometimes you get stuck, this gets you out
.clear Alias for .break
.editor Enter editor mode
.exit Exit the REPL
.help Print this help message
.load Load JS from a file into the REPL session
.save Save all evaluated commands in this REPL session to a file
Press Ctrl+C to abort current expression, Ctrl+D to exit the REPL
>
Yay, node.js works on InkBox OS (edited)










































































update.isa that is updated













node binary is 67M but when compressed it amounts to ~19M










battery_watchdog (splashes for those are in /etc/images)



fbink -g file=/etc/images/n306-battery_critical.png

fbink -g file=/etc/images/n306-battery_critical.png 
rm /dev/fb0






BT_LEVEL=$(cat "${SYSFS_PATH}/capacity")
if [ ${BT_LEVEL} -le 5 ]; then
"${FBINK}" -k -f -q
sleep 0.5
"${FBINK}" -k -f -q
sleep 0.5
"${FBINK}" -q -g file="${IMAGES_PATH}/${DEVICE}-battery_critical.png"
sleep 0.5
"${FBINK}" -q -s -f
# Prevent other processes from printing over what we just showed on the screen
rm -f /dev/fb0
/sbin/poweroff no_splash

















































































































































































epub-parser module
npm i @ridi/epub-parser. There are 2 other projects in the npm registry using @ridi/epub-parser.

npm i epub-parser. There are 4 other projects in the npm registry using epub-parser.















error: failed to run custom build command for `glib-sys v0.9.1`
Caused by:
process didn't exit successfully: `/home/szybet/Downloads/castor/target/debug/build/glib-sys-704c9f1508b4f6a7/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=GLIB_2.0_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_armv7-unknown-linux-musleabi
cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_armv7_unknown_linux_musleabi
cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_ALLOW_CROSS
cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS
cargo:rerun-if-env-changed=PKG_CONFIG_armv7-unknown-linux-musleabi
cargo:rerun-if-env-changed=PKG_CONFIG_armv7_unknown_linux_musleabi
cargo:rerun-if-env-changed=TARGET_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_armv7-unknown-linux-musleabi
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_armv7_unknown_linux_musleabi
cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
--- stderr
pkg-config has not been configured to support cross-compilation.
Install a sysroot for the target platform and configure it via
PKG_CONFIG_SYSROOT_DIR and PKG_CONFIG_PATH, or install a
cross-compiling wrapper for pkg-config and set it via
PKG_CONFIG environment variable.


















publish date: {"identifier": ["1a32fad3-5a66-4262-b095-752fd66ab673", "1a32fad3-5a66-4262-b095-752fd66ab673"], "language": ["en"], "title": ["A Kiss Before Dying"], "creator": ["Ira Levin"], "date": ["0101-01-01T00:00:00+00:00"], "calibre:title_sort": ["Kiss Before Dying, A"], "description": ["<p>The young man wanted to become reach using charming girl that studied with him. Her name is Dorothy and she is a daughter of very rich man named Leo Kingship. But suddenly Dorothy became pregnant and her boyfriend realized that his plan can be ruined. He started to make new arrangements for resolving so inconvenient situation. In several days Dorothy found dead. According to suicide note that was send to Ellen, sister of dead girl, and that fact that birth certificate was found at place of dead, police decided that her death was certainly suicide. But Ellen was not so sure, she thought her sister was killed. Ellen went to city where her sister was studying at university. There she started an investigation, almost immediately she founded a man that she thinks killed her sister…</p>"], "calibre:timestamp": ["0101-01-01T00:00:00+00:00"], "publisher": ["http://english-e-books.net/"], "contributor": ["calibre (2.16.0) [http://calibre-ebook.com]"], "cover": ["cover"]}
date?



date, idk about these there


date, idk about these there 

















































































































































































mount /dev/mmcblk0p4 /mnt
rm /mnt/onboard
dd if=/dev/zero of=/mnt/onboard bs=1M count=<nb. of mb you want, 1024=1G>
sync
sync
umount /mntfdisk -l)




















dd if=/dev/mmcblk0 bs=512 status=progress | xz > kobo-backup.img.xz














































































nicolas@gentoo-ryzen ~/D/i/xorg-xserver (master)> rg FBIOBLANK
hw/xfree86/fbdevhw/fbpriv.h
38:#define FBIOBLANK 0x4611
hw/xfree86/fbdevhw/fbdevhw.c
84: FBIOBLANK_UNSUPPORTED = 0,
856: if (fPtr->unsupported_ioctls & (1 << FBIOBLANK_UNSUPPORTED))
877: if (-1 == ioctl(fPtr->fd, FBIOBLANK, (void *) fbmode)) {
881: "FBIOBLANK: %s\n", strerror(errno));
887: fPtr->unsupported_ioctls |= (1 << FBIOBLANK_UNSUPPORTED);
889: "FBIOBLANK: %s (Screen blanking not supported "
905: if (fPtr->unsupported_ioctls & (1 << FBIOBLANK_UNSUPPORTED))
911: if (-1 == ioctl(fPtr->fd, FBIOBLANK, (void *) (1 - unblank))) {
915: "FBIOBLANK: %s\n", strerror(errno));
921: fPtr->unsupported_ioctls |= (1 << FBIOBLANK_UNSUPPORTED);
923: "FBIOBLANK: %s (Screen blanking not supported "
nicolas@gentoo-ryzen ~/D/i/xorg-xserver (master)>

Option BlankTime (0 to disable)


FBIOBLANK_UNSUPPORTED

























Option BlankTime (0 to disable) 


mount /dev/mmcblk0p4 /mnt
mount /mnt/onboard /mnt1
rm /mnt1/books.......
umount /mnt1
umount /mntmount /dev/mmcblk0p4 /mnt
rm /mnt/update/inkbox_updated
umount /mnt
to disable the popup





























mount inkbox-update-1.9-n613.upd.isa /mnt
mount /dev/mmcblk0p4 /mnt1
cp /mnt/update.isa /mnt1/update
umount /mnt1
umount /mnt (edited)







[p4]/update/update.isa
http://pkgs-inkbox.duckdns.org:25560/misc/update.isa













? nor the -





























































































































































come on!!







































isa file and can_update into .inkbox folder 


















































mount /dev/mmcblk0p4 /mnt
rm /mnt/onboard
dd if=/dev/zero of=/mnt/onboard bs=1M count=<nb. of mb you want, 1024=1G>
sync
sync
umount /mnt 



























































































rm [p4 of the sd card]/update/inkbox_updated


rm [p4 of the sd card]/update/inkbox_updated 







































































arm-nickel-linux-gnueabihf-gcc: fatal error: no input files
compilation terminated.
env GITDIR="${PWD}" TOOLCHAINDIR="${PWD}/toolchain/arm-nickel-linux-gnueabihf/" THREADS=$(($(nproc)*2)) TARGET=arm-nickel-linux-gnueabihf scripts/build_kernel.sh n306 root
sudo env GITDIR="${PWD}" TOOLCHAINDIR="$PATH" THREADS=$(($(nproc)*2)) TARGET=arm-nickel-linux-gnueabihf scripts/build_kernel.sh n306 root


sudo env GITDIR="${PWD}" TOOLCHAINDIR="$PATH" THREADS=$(($(nproc)*2)) TARGET=arm-nickel-linux-gnueabihf scripts/build_kernel.sh n306 root 


env GITDIR="${PWD}" TOOLCHAINDIR="${PWD}/toolchain/arm-nickel-linux-gnueabihf/" THREADS=$(($(nproc)*2)) TARGET=arm-nickel-linux-gnueabihf scripts/build_kernel.sh n306 root 








ls /home/build/inkbox/kernel/initrd/




ls /home/build/inkbox/kernel/initrd/ ls: cannot access '/home/build/inkbox/kernel/initrd/': No such file or directory
ls /home/build/inkbox/?
config linux-2.6.35.3 linux-2.6.35.3-spt1 linux-3.0.35-n437 linux-4.1.15-n306 linux-5.15.10 modules
linux-2.6.31-kt linux-2.6.35.3-n905b linux-3.0.35-n236 linux-4.1.15-libra linux-5.10.89 linux-5.16-n249 out




home/build/inkbox/kernel should point to your kernel-master dir
























checking for GNU sed >= 4.0... yes
checking for gcc... /home/manuel/x-tools/arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-gcc
checking whether the C compiler works... no
configure: error: in `/home/manuel/Escritorio/pro/sanki/koxtoolchain-master/build/CT-NG':
configure: error: C compiler cannot create executables
See `config.log' for more details

./gen-tc.sh kobo







libstdc++?



git
ncurses
gperf
help2man
bison
texinfo
flex
gawk
unzip







/home/manuel/x-tools/arm-kobo-linux-gnueabihf/bin/arm-kobo-linux-gnueabihf-gcc: No such file or directory

























applications-public.pem kobox-graphic-public.pem kobox-nographic-public.pem public.pem


openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -out public.pem -outform PEM -pubout
private.pem public.pem

applications-public.pem kobox-graphic-public.pem kobox-nographic-public.pem public.pem 





openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -out public.pem -outform PEM -pubout applications-public.pem kobox-graphic-public.pem kobox-nographic-public.pem private.pem public.pem
Using the second command here but changing "public.pem" for the other names



openssl rsa -in private.pem -out kobox-nographic-public.pem -outform PEM -pubout





env GITDIR="${PWD}" ./release.sh as root user in roofts repo

openssl dgst -sha256 -sign private.pem -out rootfs.squashfs.dgst rootfs.squashfs



openssl dgst -sha256 -sign private.pem -out rootfs.squashfs.dgst rootfs.squashfs 






https://github.com/Szybet/gui-bundle/tree/main














































qmake --version
QMake version 3.1
Using Qt version 5.15.2 in /home/manuel/qt-bin/qt-linux-5.15.2-kobo/lib
qmake && make -j8
main_menu/mainwindow.cpp:11:10: fatal error: zip.h: No such file or directory
11 | #include "zip.h"
| ^~~~~~~
compilation terminated.
make: *** [Makefile:3720: mainwindow.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from components/toast.cpp:5:
./globals.h: In function 'void global_fun::set_brightness(int)':
./globals.h:97:36: warning: unused parameter 'value' [-Wunused-parameter]
97 | inline void set_brightness(int value) {
| ~~~~^~~~~





qmake && make -j8 








build_lockscreen/
Makefile eink.qss lockscreen.cpp lockscreen.o lockscreen.ui main.o moc_lockscreen.o qrc_resources.cpp resources.qrc
README.md lockscreen lockscreen.h lockscreen.pro main.cpp moc_lockscreen.cpp moc_predefs.h qrc_resources.o ui_lockscreen.hbuild_oobe-inkbox/
Bitter-Medium.ttf NotoMono-Regular.ttf crimson.ttf left-black.png main.o oobe-inkbox oobewindow.o resources.qrc
IbarraRealNova-Medium.ttf README.md eink.qss left-gray.png moc_oobewindow.cpp oobe-inkbox.pro oobewindow.ui right-black.png
LICENSE checkbox-checked.png fraunces.ttf list.png moc_oobewindow.o oobewindow.cpp qrc_resources.cpp right-white.png
Makefile checkbox-unchecked.png kobox-icon.png main.cpp moc_predefs.h oobewindow.h qrc_resources.o ui_oobewindow.h
























dd if=zImage-root of=/dev/sdcard bs=512 seek=81920



























overlaymount mean



overlaymount mean 
























































































































gui_rootfs.isa (edited)




















ifconfig usb0 192.168.2.1

ifconfig -a?





root, then enter




NetworkManager




unsquashfs /opt/key.sqsh -d keyopenssl dgst -sha256 -verify key/public.pem [p4]/gui_rootfs.isa.dgst
No signature to verify: use the -signature option
openssl dgst -sha256 -verify key/public.pem -signature [p4]/gui_rootfs.isa.dgst [p4]/gui_rootfs.isa







mount /dev/mmcblk0p4 /mnt
No such file or directory
ls /dev?



openssl dgst -sha256 -verify key/public.pem [p4]/gui_rootfs.isa.dgst Verified ok
reboot

openssl dgst -sha256 -verify key/public.pem -signature [p4]/gui_rootfs.isa.dgst [p4]/gui_rootfs.isa 


overlaymount-rootfs.squashfs in partition 2 too?

/etc/init.d/rcS, then post the full output
echo rooted | dd of=/dev/mmcblk0 bs=512 seek=79872

sync && reboot


/etc/init.d/rcS, then post the full output 


/etc/init.d/rcS and post the output








sh -x /etc/init.d/rcS

echo rooted | dd of=/dev/mmcblk0 bs=512 seek=79872 
dd if=/dev/mmcblk0 bs=512 skip=79872 count=1?

echo rooted | dd of=/dev/mmcblk0 bs=512 seek=79872
dd if=/dev/mmcblk0 bs=512 skip=79872 count=1
run this
dd: standard output: illegal seek



cat [p1]/flags/BOOT_USB_DEBUG is false (edited)






openssl dgst -sha256 -verify key/public.pem -signature [p4]/gui_rootfs.isa.dgst [p4]/gui_rootfs.isa 
















dd if=/dev/zero of=[p4]/onboard bs=1M count=512 (edited)






































include/linux/compiler-gcc.h:91:1: fatal error: linux/compiler-gcc11.h: No such file or directory
91 | #include gcc_header(__GNUC__)
| ^~~~~
(edited)



sudo GITDIR=/home/USER/Ereader/Inkbox/kernel-master TOOLCHAINDIR=$GITDIR/toolchain/gcc-4.8 TARGET=arm-linux-gnueabihf THREADS=4 scripts/build_kernel.sh n613 std Got the same error when using the other directories available in the toolchain folder




sudo GITDIR=/home/USER/Ereader/Inkbox/kernel-master TOOLCHAINDIR=$GITDIR/toolchain/arm-kobo-linux-gnueabihf TARGET=arm-linux-gnueabihf THREADS=4 scripts/build_kernel.sh n613 std
env GITDIR="${PWD}" TOOLCHAINDIR="${PWD}/toolchain/arm-nickel-linux-gnueabihf/" THREADS=$(($(nproc)*2)) TARGET=arm-nickel-linux-gnueabihf scripts/build_kernel.sh n613 root


THREAD part of the command then?

root and/or env part you changed?






rootfs.squashfs does not exist (it isn't in the file tree either).sudo openssl dgst -sha256 -sign private.pem -out rootfs.squashfs.dgst rootfs.s
quashfs error throws after this command





























































































































































































































































































































onboard storage size dialogue, the default being 64 MiB, im not sure what this is for, is it the amount of free space in the root partition?















































Hacker News • 6/27/2023 6:44 PM 

















































































































































































































































































































































































































































































































































































































































































explore_local_library.sh, why does it exist, where does it exist (cause I can't find it on GH) and are there any other sh files I should know about?















/mnt/onboard/.adds/inkbox/eink.qss (edited)














inkbox/
- api/
- audio/
- encryption/
- platform/
- ui/
- splash/
- home/
...
- telemetry/



















QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly);
w.setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close();
We have the above code snippet dozens of times throughout the code base. I would prefer it if we could do something along the lines of:
Style::applyStyle(&w, "eink");
This way we won't need to make sure that everything uses the same path (since that is handled by the function) while also having a really easy option to switch the path when running on a platform where we don't control the devices full file system.
















a.setStyle("windows");
QFile stylesheetFile("://other/eink.qss");
stylesheetFile.open(QFile::ReadOnly);
a.setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close();
qDebug() << "Applied stylesheet for ereader";






QFile stylesheetFile("/mnt/onboard/.adds/inkbox/eink.qss");
stylesheetFile.open(QFile::ReadOnly);
w.setStyleSheet(stylesheetFile.readAll());
stylesheetFile.close();
We have the above code snippet dozens of times throughout the code base. I would prefer it if we could do something along the lines of:
Style::applyStyle(&w, "eink");
This way we won't need to make sure that everything uses the same path (since that is handled by the function) while also having a really easy option to switch the path when running on a platform where we don't control the devices full file system. 

MainWindow w

QApplication a(argc, argv);











































inkbox-2.0-n705.xz 2e103043cafe391b75d37907c25f5a5d1437f1e630008c612c882d19ff837446
inkbox-2.0-n905b.xz 3e0a1826aefc2ee801b4333e8a4666bf83cb0ab025ea0f156ffc650fccc23b57
inkbox-2.0-n905c.xz 4a163146b09faff5d0051c1f7521cc05e0563b879b33e44a4c23146232c78b6d
inkbox-2.0-n613.xz d62d6fd2a20170e0d000635ac89005fee335f04749686062aaea3878ce240a6e
inkbox-2.0-n236.xz fbf846fcd9111fc0f09961c62b98e2249f1032822497a5ba00f1afe4b63d69c7
inkbox-2.0-n437.xz fb5f083b3c2c878bb66cf7a732e6dc4d9fc68707e9a6bf5efc1e43b2d0b3ece5
inkbox-2.0-n306_a.xz 6f86d2924d11b063286875fa18c57e6dd221d484ab49340db3686f3e7a61963e

































































































































































dmesg -c
echo host > /sys/kernel/debug/ci_hdrc.0/role
dmesg
and show the output
















ifconfig please















ifconfig



ssh root@127.0.0.1
password rootifconfig usb0 down

q

ifconfig usb0 down 




busybox telnetd -F -l /bin/sh (edited)telnet 192.168.2.103





restart sshd









-F option







notify-send "hello there"
echo 192.168.3.2 > /boot/flags/USBNET_IP before, then restart usbnet

echo 192.168.3.2 > /boot/flags/USBNET_IP before, then restart usbnet 



busybox telnetd -l /bin/sh so that you can exit iterm




echo 192.168.3.2 > /boot/flags/USBNET_IP before, then restart usbnet 



















































































